﻿/*
   Advanced Flash Engine in ActionScript 3.
   Copyright (C) 2009  Dean Gardiner

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.winmastergames.gameassets {
	import flash.display.*;
	import flash.events.*;
	import flash.display.Stage;
	import com.winmastergames.lolgame.mapDefault;

	public class pathnode extends MovieClip {
		var myStage:mapDefault; //Set's the stage to mapDefault
		var myMC:MovieClip; //?

		//var ammoRemaining:Number = 20;
		public function pathnode(writeStage:mapDefault, writeX:Number, writeY:Number) //Set's ref tp mapDefault, writeX and writeY are the spawn x,y
		{
			writeStage.path.addChild(this); //Add's it to the objects movieclip in the stage
			myStage = writeStage; //Set's mystage to writestage dunno why.
			x = writeX; //Set's it's x to the writePosition set in the function
			y = writeY; //Set's it's y to the writePosition set in the function
			myMC = MovieClip(this.parent.getChildByName(this.name)); //?
			//addEventListener (Event.ENTER_FRAME, loop);//For somereason a loop is needed or we get errors
		}

		public function loop(e:Event){
		}
	}
}